package com.danbay.cloud.device.api.dto;

/**
 * @author yangyanchen on 2018/1/15
 *         Copyright © 2016 －2017 旦倍科技
 */
public enum ResultEnum {

    SUCCESS(200, "请求成功"),
    FAILED(500, "请求失败");
    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
